package com.webController;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * todo resolve the request  don't find when it have been login .
 * maybe is modelandview don't match .
 */
@Controller
@RequestMapping
public class IndexController {
    @RequestMapping("success")
    public String index() {
        // the default is redirect
        // forward:index.html vs redirect:index.html
        // location the /index request or   location the /index.html request
        //
        return "index.html";
    }
    @RequestMapping("fail")
    public String fail() {
        return "login fail";
    }
}
